package com.tyj.movie.mapper;

import com.tyj.movie.entity.MovieTheatreShow;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tyj.movie.vo.CinemasMovieVo;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author tyj
 * @since 2021-06-28
 */
public interface MovieTheatreShowMapper extends BaseMapper<MovieTheatreShow> {

    /**
     * 查询未放映的电影
     * @param movieTheatreId
     * @return 影院id
     *
     */
    List<CinemasMovieVo> queryNotShowMovieBymovieTheatreId(Long movieTheatreId);

    /**
     * 查询未放映的影院排片
     * @param movieTheatreId 影院id
     * @return
     */
    List<MovieTheatreShow> queryNotShowMovieShowBymovieTheatreId(Long movieTheatreId);

    BigDecimal queryPriceById(Long movieTheatreShowId);

    MovieTheatreShow getMovieTheatreNameAndBrandById(Long movieShowId);
}
